package com.lineage.server.serverpackets;

import com.lineage.config.Config;

public class S_ServerVersion extends ServerBasePacket {
  private static final int CLIENT_LANGUAGE = Config.CLIENT_LANGUAGE;
  
  private static final int UPTIME = (int)(System.currentTimeMillis() / 1000L);
  
  private byte[] _byte;
  
  public S_ServerVersion() {
    this._byte = null;
    writeC(139);
    writeC(0);
    writeC(13);
    writeD(130807005);
    writeD(130807005);
    writeD(2013030701);
    writeD(130807001);
    writeD(120913201);
    writeC(0);
    writeC(0);
    writeC(CLIENT_LANGUAGE);
    writeD(490882);
    writeD(UPTIME);
    writeH(1);
    writeC(0);
  }
  
  public byte[] getContent() {
    if (this._byte == null)
      this._byte = getBytes(); 
    return this._byte;
  }
  
  public String getType() {
    return getClass().getSimpleName();
  }
}
